#include "stm32f10x.h" 
#include "SysTick.h"
#include "SG90.h"
#include "key.h"

int main()
{

	u8 key;
	delay_init();
	PWN_Init(7199,199);
	KEY_Init();
	while(1)
	{
		
		key=KEY_Scan(0);
		if(key== KEY0_PRESS	)
		{
		     unlock();
		}
		delay_ms(10);
		
	}
}

